﻿@model HeaderLinksModel
@using Nop.Web.Models.Common;
@Html.Widget("mobile_header_links_before")

<div data-role="navbar" class="hub-navbar">@*id="hub-navbar"*@
    @* All data-theme default is "a" *@
    <ul>
        @* Favorite Store *@
        <li><a href="@Url.RouteUrl("CustomerMyAccount")" data-icon="storelink" data-iconpos="top"> @* Add Link to Favorite Store *@
                <!--<a href="Url.RouteUrl("Register")" id="ico-register" data-icon="custom" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-iconpos="top" data-inline="true">-->
                Favorite Store</a> @* Add Text *@
        </li>

        @if (Model.WishlistEnabled)
        {
            @* Wishlist *@
            <li><a href="@Url.RouteUrl("Wishlist")" data-icon="wishlistlink" data-iconpos="top">
                @T("Wishlist")
                (@Model.WishlistItems)</a></li>
        }

        @if (Model.ShoppingCartEnabled)
        {
            @* ShoppingCart *@
            <li><a href="@Url.RouteUrl("ShoppingCart")" data-icon="cartlink" data-iconpos="top">
                @T("ShoppingCart")
                (@Model.ShoppingCartItems)</a></li>
        }
        
        @if (Model.IsAuthenticated)
        {
            @*<li><a href="@Url.RouteUrl("CustomerMyAccount")">
               <!--<a href="@Url.RouteUrl("CustomerMyAccount")"  data-icon="custom" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-iconpos="top">-->
                @Model.CustomerEmailUsername</a>
            </li>*@
            @*<li><a href="@Url.RouteUrl("Logout")">
                <!--<a href="@Url.RouteUrl("Logout")" id="ico-logout" data-icon="custom" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-iconpos="top" data-inline="true">-->
                @T("Account.Logout")</a>
            </li>*@
            
            @* MyHUB *@
            <li><a href="@Url.RouteUrl("CustomerMyAccount")" data-icon="hublink" data-iconpos="top">
                MyHUB</a> @* Add text *@ @* "Logout" *@
            </li>
        }
        else
        {
           @* <li><a href="@Url.RouteUrl("Register")">
                <!--<a href="@Url.RouteUrl("Register")" id="ico-register" data-icon="custom" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-iconpos="top" data-inline="true">-->
                @T("Account.Register")</a>
            </li>*@
            
            @* LOGIN *@
            <li><a href="@Url.RouteUrl("Login")" data-icon="loginlink" data-iconpos="top">
                @T("Account.Login")</a>
            </li>
        }
    </ul>
</div>

@*
<div data-role="navbar">
    <ul>
        @if (Model.IsAuthenticated)
        {
            <li><a href="@Url.RouteUrl("CustomerMyAccount")" class="account" data-role="button">@Model.CustomerEmailUsername</a></li>
            <li><a href="@Url.RouteUrl("Logout")" class="ico-logout" data-role="button">@T("Account.Logout")</a></li>
        }
        else
        {
            <li><a href="@Url.RouteUrl("Register")" class="ico-register" data-role="button">@T("Account.Register")</a></li>
            <li><a href="@Url.RouteUrl("Login")" class="ico-login" data-role="button">@T("Account.Login")</a></li>
        }
    </ul>
</div>
<div data-role="navbar">
    <ul>
        @if (Model.ShoppingCartEnabled)
        {
            <li><a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart" data-role="button">@T("ShoppingCart")
                (@Model.ShoppingCartItems)</a></li>
        }
        @if (Model.WishlistEnabled)
        {
            <li><a href="@Url.RouteUrl("Wishlist")" class="ico-wishlist" data-role="button">@T("Wishlist")
                (@Model.WishlistItems)</a></li>
        }
    </ul>
</div>
*@
@Html.Widget("mobile_header_links_after")
